﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMA_ES
{
    class CmaEs
    {
        int N;
        double[] xmean;//chyba jeden rand na każdy z N
        float sigma;
        double stopeval;
        double stopfitness;

        int lambda;
        int mu;
        double[] weights;//jak z xmean
        int mueff;

        public CmaEs(int N, float sigma)
        {
            this.N = N;
            this.sigma = sigma;
            stopeval = Math.Pow(10, 10);
            stopfitness = Math.Pow(10, 3 * Math.Pow(N, 2));

            lambda = 4 + (int)Math.Floor(3 * Math.Log10(N));
            mu = lambda / 2;
        }
    }
}
